//
// Copyright (c) 2024 BPer
//
#include <bpersdp/BPerSdpHandle.h>
#include <bpersdp/BPerRtcSdp.h>
#include <bperutil/sys/BPerLog.h>
void bPer_parse_sdp(char* str){
	   BPerSdp sdp;
	    bPer_memset(&sdp,0,sizeof(BPerSdp));
	    bPer_create_rtcsdp(&sdp);
	    bPer_rtcsdp_parse(&sdp,str);
	    char* tmp=(char*)bPer_calloc(1024*12,1);
	    BPerBuffer buf;
	    bPer_init_buffer(&buf,tmp,1024*12);
	    bPer_rtcsdp_encode(&sdp,&buf);

	    bPer_destroy_rtcsdp(&sdp);
}
